import { HOTLIST } from '../constant'

const initState = {
    list: []
}

export default function hotListReducer(preState = initState.list, action) {
    const { type, data } = action
    switch (type) {
        case HOTLIST:
            
            return [...data, ...preState]
    
        default:
            return preState
    }
}